package com.greate.community.entity.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @author xzx
 * @date 2022/3/12 0:39
 */
@Data
public class LetterDTO {
    @NotNull(message = "私信目标不能为空")
    private Integer userId;

    @NotBlank
    @Size(max = 200, message = "私信内容过长，不能超过200字")
    private String content;
}
